package com.bytz.modules.cms.auditBatch.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bytz.modules.cms.auditBatch.model.AuditBatchCountModel;
import com.bytz.modules.cms.user.entity.AuditBatch;

import java.util.Map;

public interface IAuditBatchProductService extends IService<AuditBatch> {

    /**
     * 分页查询
     */
    IPage<AuditBatchCountModel> queryPage(Page<AuditBatch> page, AuditBatch auditBatch, Map<String, String[]> parameterMap) throws Exception;

    /**
     * 暂存
     */
    AuditBatch storage(AuditBatch auditBatch);

    /**
     * 提交
     */
    AuditBatch submit(AuditBatch auditBatch);

    /**
     * 同步Change表到主表
     */
    void syncChange(String type);

    /**
     * 删除一条batch表记录
     */
    Boolean deleteBatch(String id);
}
